package cn.chia.pojo;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 * 订单实体类
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer oid;                            //订单id
	private Customerservices customerservices;      //客服外键
	private User user;                              //用户外键
	private String orderNumber;                     //订单编号
	private String offers;                          //订单满减情况
	private Double total;                           //此订单总金额
	private String addr;                            //订单配送地址
	private String phone;                           //用户联系方式
	private String state;                           //订单状态
	private Integer flag;                           //订单被删除情况
	private String refundreason;                    //订单退款原因
	private Integer inmanage;                       //订单是否正在被处理中，1表示正在被处理中，0表示未被处理或处理完成
	private String paystate;                        //支付方式
	private Peisongren peisongren;                  //配送人外键
	private Ordertime ordertime;                    //订单时间外键
	private TblGroupPurchase pinId;
	private String words;                           //买家留言
	private Set orderitemses = new HashSet(0);      //订单明细set集合
	private TblUser storekeeper;
	private Date uszdday;
	private String uszdtime;
	private Double yingfumoney;
	private String yingfureason;
	private String receivername;
	
	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** full constructor */
	public Orders(Customerservices customerservices,String words,
			Ordertime ordertime,Peisongren peisongren,User user,Integer flag,
			String orderNumber, String offers, Double total,TblUser storekeeper,
			Timestamp orderbuildtime, String addr, Date uszdday,String uszdtime,
			String phone, String state,  Set orderitemses,TblGroupPurchase tblGroupPurchase) {
		this.customerservices = customerservices;
		this.user = user;
		this.orderNumber = orderNumber;
		this.flag = flag;
		this.offers = offers;
		this.total = total;
		this.addr = addr;
		this.phone = phone;
		this.state = state;
		this.orderitemses = orderitemses;
		this.peisongren = peisongren;
		this.ordertime = ordertime;
		this.storekeeper = storekeeper;
		this.uszdday = uszdday;
		this.uszdtime = uszdtime;
	}

	// Property accessors

	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Customerservices getCustomerservices() {
		return this.customerservices;
	}

	public void setCustomerservices(Customerservices customerservices) {
		this.customerservices = customerservices;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getOrderNumber() {
		return this.orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getOffers() {
		return this.offers;
	}

	public void setOffers(String offers) {
		this.offers = offers;
	}

	public Double getTotal() {
		return this.total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set getOrderitemses() {
		return this.orderitemses;
	}

	public void setOrderitemses(Set orderitemses) {
		this.orderitemses = orderitemses;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getRefundreason() {
		return refundreason;
	}

	public void setRefundreason(String refundreason) {
		this.refundreason = refundreason;
	}

	public Integer getInmanage() {
		return inmanage;
	}

	public void setInmanage(Integer inmanage) {
		this.inmanage = inmanage;
	}

	public Peisongren getPeisongren() {
		return peisongren;
	}

	public void setPeisongren(Peisongren peisongren) {
		this.peisongren = peisongren;
	}

	public String getPaystate() {
		return paystate;
	}

	public void setPaystate(String paystate) {
		this.paystate = paystate;
	}

	public Ordertime getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(Ordertime ordertime) {
		this.ordertime = ordertime;
	}

	public String getWords() {
		return words;
	}

	public void setWords(String words) {
		this.words = words;
	}
	
	

	public TblUser getStorekeeper() {
		return storekeeper;
	}

	public void setStorekeeper(TblUser storekeeper) {
		this.storekeeper = storekeeper;
	}
	
	

	public Date getUszdday() {
		return uszdday;
	}

	public void setUszdday(Date uszdday) {
		this.uszdday = uszdday;
	}

	public String getUszdtime() {
		return uszdtime;
	}

	public void setUszdtime(String uszdtime) {
		this.uszdtime = uszdtime;
	}
	

	public TblGroupPurchase getPinId() {
		return pinId;
	}

	public void setPinId(TblGroupPurchase pinId) {
		this.pinId = pinId;
	}

	public Double getYingfumoney() {
		return yingfumoney;
	}

	public void setYingfumoney(Double yingfumoney) {
		this.yingfumoney = yingfumoney;
	}

	public String getYingfureason() {
		return yingfureason;
	}

	public void setYingfureason(String yingfureason) {
		this.yingfureason = yingfureason;
	}

	public String getReceivername() {
		return receivername;
	}

	public void setReceivername(String receivername) {
		this.receivername = receivername;
	}

	@Override
	public String toString() {
		return "Orders [addr=" + addr + ", customerservices="
				+ customerservices + ", flag=" + flag + ", inmanage="
				+ inmanage + ", offers=" + offers + ", oid=" + oid
				+ ", orderNumber=" + orderNumber + ", orderitemses="
				+ orderitemses + ", ordertime=" + ordertime + ", paystate="
				+ paystate + ", peisongren=" + peisongren + ", phone=" + phone
				+ ", pinId=" + pinId + ", refundreason=" + refundreason
				+ ", state=" + state + ", storekeeper=" + storekeeper
				+ ", total=" + total + ", user=" + user + ", uszdday="
				+ uszdday + ", uszdtime=" + uszdtime + ", words=" + words
				+ ", yingfumoney=" + yingfumoney + ", yingfureason="
				+ yingfureason + "]";
	}
}